#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class ConductInfo : Business.BusinessBase<ConductInfo, int>
	{
		#region Fields and Properties

		private String cndtType = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CndtType
		{
			get { return cndtType; }
			set
			{
				if (value != cndtType)
				{
					MarkChanged("CndtType");
					cndtType = value;
				}
			}
		}

		private int cndtWeek = 0;
		/// <summary>
		/// 
		/// </summary>
		public int CndtWeek
		{
			get { return cndtWeek; }
			set
			{
				if (value != cndtWeek)
				{
					MarkChanged("CndtWeek");
					cndtWeek = value;
				}
			}
		}

		private String cndtPeerName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CndtPeerName
		{
			get { return cndtPeerName; }
			set
			{
				if (value != cndtPeerName)
				{
					MarkChanged("CndtPeerName");
					cndtPeerName = value;
				}
			}
		}

		private String cndtPeerCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CndtPeerCode
		{
			get { return cndtPeerCode; }
			set
			{
				if (value != cndtPeerCode)
				{
					MarkChanged("CndtPeerCode");
					cndtPeerCode = value;
				}
			}
		}

		private int cndtScore = 0;
		/// <summary>
		/// 
		/// </summary>
		public int CndtScore
		{
			get { return cndtScore; }
			set
			{
				if (value != cndtScore)
				{
					MarkChanged("CndtScore");
					cndtScore = value;
				}
			}
		}

		private int term = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Term
		{
			get { return term; }
			set
			{
				if (value != term)
				{
					MarkChanged("Term");
					term = value;
				}
			}
		}

		private String grade = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Grade
		{
			get { return grade; }
			set
			{
				if (value != grade)
				{
					MarkChanged("Grade");
					grade = value;
				}
			}
		}

		private String yearNum = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String YearNum
		{
			get { return yearNum; }
			set
			{
				if (value != yearNum)
				{
					MarkChanged("YearNum");
					yearNum = value;
				}
			}
		}

		private String stdCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StdCode
		{
			get { return stdCode; }
			set
			{
				if (value != stdCode)
				{
					MarkChanged("StdCode");
					stdCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public ConductInfo()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override ConductInfo DataSelect(int id)
		{
			return Services.DALService.ConductInfoService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.ConductInfoService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.ConductInfoService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.ConductInfoService.Delete(this);
		}

		#endregion Base overrides
	}
}
